home *** CD-ROM | disk | FTP | other *** search
- System
- SEQ formatted GEOS file V1.0
- Epson FX-80
- UTILITY
- LASTER'S
- ONVERTER
- EDITFUN
- TABLES
- COPE Source V1.1
- COPE Editor V1.1
- Equates, constants, and routines.
- @4@R@d@t@
- ; *****************
- ; * EQUATES FOR GEOS EDITOR
- ; * BY BILL SHARP
- ; ***************
- curDevice = $BA
- STPAT = $C139
- ILRECT = $C19F
- HORLIN = $C118
- DISBUF = $002F
- R0 = $02
- R1 = $04
- R1L = $04
- R1H = $05
- R2 = $06
- R3 = $08
- R4 = $0A
- R5 = $0C
- R6 = $0E
- R7 = $10
- R8 = $12
- R9 = $14
- R10 = $16
- R11 = $18
- R12 = $1A
- R13 = $1C
- KEYVEC = $84A3
- STFVEC = $84AB
- KEYDTA = $8504
- PUTCHR = $C145
- ENTDSK = $C22C
- BOLD = 24
- PLAIN = 27
- HORIZ = 0
- VERT = 128
- MACT = 0
- MANTOP = 0
- MANBOT = 14
- MANLFT = 0
- A0 = $FB
- A1 = $FD
- MANRT = 142
- A2 = $70
- A3 = $72
- A4 = $74
- A5 = $76
- A6 = $78
- A7 = $7A
- A8 = $7C
- A9 = $7E
- START1 = A2
- END = A3
- DIST = A4
- CBP = A5
- SOB = A6
- EOB = A7
- LINEL1 = A8
- MISC = A9
- STRINX = $84BE
- STRINY = $84C0
- CRMODE = $2E
- MEMTOP = $57
- MEMBOT = $59
- CURPOS = $5B
- PC = A0
- PCRAM = A1
- X_Can = 72
- Y_Can = 72
- LineCount = 15 ;number of lines on the screen
- mouseXPos = $3A
- mouseYPos = $3C
- k_; CONSTANTS
- curDrive = $8489
- curRecord = $8496
- dirEntryBuf = $8400
- FileHeader = $8100
- CURDHD = $8200
- numDrives = $848D
- sysDBData = $851D
- ;----
- ; CONSTANTS
- curDrive = $8489
- curRecord = $8496
- dirEntryBuf = $8400
- FileHeader = $8100
- CURDHD = $8200
- numDrives = $848D
- sysDBData = $851D
- ;----
- ; NOTE:
- ; The more labels you have the slower the Assembler
- ; will run. Place a semi-colon in front of the routines
- ; you will not be using.
- ;MISC
- ;BootGEOS = $C000
- ;ResetHandle = $C003
- ;InterruptMain = $C100
- ; PROCESSES
- ;InitProcesses = $C103
- ;RestartProcess = $C106
- ;EnableProcess = $C109
- ;BlockProcess = $C10C
- ;UnblockProcess = $C10F
- ;FreezeProcess = $C112
- ;UnfreezeProcess = $C115
- ; GRAPHICS
- HorizontalLine = $C118
- InvertLine = $C11B
- RecoverLine = $C11E
- VerticalLine = $C121
- Rectangle = $C124
- FrameRectangle = $C127
- InvertRectangle = $C12A
- RecoverRectangle = $C12D
- DrawLine = $C130
- DrawPoint = $C133
- GraphicsString = $C136
- SetPattern =$C139
- GetScanLine = $C13C
- TestPoint = $C13F
- ; BACKGROUND GENERATION
- BitmapUp = $C142
- ; CHARACTER MANIPULATION
- PutChar = $C145
- PutString = $C148
- UseSystemFont = $C14B
- ; MOUSE & MENUS
- StartMouseMode = $C14E
- RecoverMenu = $C154
- RecoverAllMenus = $C157
- DoIcons = $C15A
- ; UTILITIES
- ;DShiftLeft = $C15D
- ;BBMult = $C160
- ;BMult = $C163
- ;DMult = $C166
- ;Ddiv = $C169
- ;DSdiv = $C16C
- ;Dabs = $C16F
- ;Dnegate = $C172
- ;Ddec = $C175
- ;ClearRam = $C178
- ;FillRam = $C17B
- ;MoveData = $C17E
- ;InitRam = $C181
- ;PutDecimal = $C184
- ;GetRandom = $C187
- ; MISC MOUSE, MENU, GRAPHICS, SLEEP
- MouseUp = $C18A
- MouseOff = $C18D
- DoPreviousMenu = $C190
- ReDoMenu = $C193
- GetSerialNumber = $C196
- Sleep = $C199
- ClearMouseMode = $C19C
- i_Rectangle = $C19F
- i_FrameRectangle = $C1A2
- i_RecoverRectangle = $C1A5
- i_GraphicsString = $C1A8
- ; BACKGROUND GENERATION
- i_BitmapUp = $C1AB
- ; CHARACTER MANIPULATIION
- i_PutString = $C1AE
- GetRealSize = $C1B1
- ; MOUSE & MENUS
- ; UTILITIES
- ;i_FillRam = $C1B4
- ;i_MoveData = $C1B7
- ; ROUTINES ADDED LATER
- ;GetString = $C1BA
- GotoFirstMenu = $C1BD
- ;InitTextPrompt = $C1C0
- ;MainLoop = $C1C3
- ;DrawSprite = $C1C6
- ;GetCharWidth = $C1C9
- ;LoadCharSet = $C1CC
- ;PosSprite = $C1CF
- ;EnablSprite = $C1D2
- ;DisablSprite = $C1D5
- ;CallRoutine = $C1D8
- ;CalcBlksFree = $C1DB
- ;ChkDkGEOS = $C1DE
- NewDisk = $C1E1
- GetBlock = $C1E4
- PutBlock = $C1E7
- ;SetGEOSDisk = $C1EA
- SaveFile = $C1ED
- ;SetGDirEntry = $C1F0
- ;BldGDirEntry = $C1F3
- ;GetFreeDirBlk = $C1F6
- WriteFile = $C1F9
- ;BlkAlloc = $C1FC
- ReadFile = $C1FF
- ;SmallPutChar = $C202
- ;FollowChain = $C205
- GetFile = $C208
- FindFile = $C20B
- ;CRC = $C20E
- LdFile = $C211
- ;EnterTurbo = $C214
- ;LdDeskAcc = $C217
- ReadBlock = $C21A
- ;LdApplic = $C21D
- ;WriteBlock = $C220
- ;VerWriteBlock = $C223
- ;FreeFile = $C226
- GetFHdrInfo = $C229
- EnterDeskTop = $C22C
- ;StartAppl = $C22F
- ;ExitTurbo = $C232
- ;PurgeTurbo = $C235
- DeleteFile = $C238
- FindFTypes = $C23B
- ;RstrAppl = $C23E
- ;ToBasic = $C241
- ;FastDelFile = C244
- ;GetDirHead = $C247
- ;PutDirhead = $C24A
- ;NxtBlkAlloc = $C24D
- ;ImprintRectangle = $C250
- ;i_ImprintRectangle = $C253
- DoDlgBox = $C256
- ;RenameFile = $C259
- ;InitForIO = $C25C
- ;DoneWithIO = $C25F
- ;DShiftRight = $C262
- ;CopyString = $C265
- ;CopyFString = $C268
- ;CmpString = $C26B
- ;CmpFString = $C26E
- ;FirstInit = $C271
- OpenRecordFile = $C274
- CloseRecordFile = $C277
- NextRecord = $C27A
- PreviousRecord = $C27D
- PointRecord = $C280
- DeleteRecord = $C283
- InsertRecord = $C286
- AppendRecord = $C289
- ReadRecord = $C28C
- WriteRecord = $C28F
- ;SetNextFree = $C292
- ;UpdateRecordFile = $C295
- GetPtrCurDkNm = $C298
- ;PromptOn = $C29B
- ;PromptOff = $C29E
- OpenDisk = $C2A1
- ;DoInlineReturn = $C2A4
- ;GetNextChar = $C2A7
- ;BitmapClip = $C2AA
- ;FindBAMBit = $C2AD
- SetDevice = $C2B0
- IsMseInRegion = $C2B3
- ;ReadByte = $C2B6
- ;FreeBlock = $C2B9
- ;ChangeDiskDevice = $C2BC
- ;RstrFrmDialog = $C2BF
- ;Panic = $C2C2
- ;BitOtherClip = $C2C5
- ;StashRAM = $C2C8
- ;FetchRAM = $C2CB
- ;SwapRAM = $C2CE
- ;VerifyRAM = $C2D1
- ;DoRAMOp = $C2D4
- a;MAcros for Assembler
- ;------
- ; MACROS
- .MAC loadw; examp.le load R0:memus
- ldx #<?2
- stx ?1
- ldx #>?2
- stx ?1+1
- ;----
- ; this macro sets up the menu structure
- .MAC menu
- .Word ?1
- .Byte ?2
- .Word ?3
- ;-----
- .MAC movew
- ldx ;MAcros for Assembler
- ;------
- ; MACROS
- .MAC loadw; examp.le load R0:memus
- ldx #<?2
- stx ?1
- ldx #>?2
- stx ?1+1
- ;----
- ; this macro sets up the menu structure
- .MAC menu
- .Word ?1
- .Byte ?2
- .Word ?3
- ;-----
- .MAC movew
- ldx ?1
- stx ?2
- ldx ?1+1
- stx ?2+1
- ;----
- .MAC addw
- lda ?1
- adc ?2
- sta ?2
- lda ?1+1
- adc ?2+1
- sta ?2+1
- ;----
- .MAC addy
- adc ?1
- sta ?1
- lda ?1+1
- adc #0
- sta ?1+1
- ;----
- ;-----
-